# Copyright (c) 2025 pony working team
# SPDX-License-Identifier: MulanPSL-2.0

ld_script := $(root_dir)/scripts/link/rom.ld

lflags += -Wl,--defsym,RAM_START=$(CONFIG_RAM_START)
lflags += -Wl,--defsym,RAM_SIZE=$(CONFIG_RAM_SIZE)

ifeq (${CONFIG_LINK_TYPE}, "rom")
lflags += -Wl,--defsym,ROM_START=$(CONFIG_ROM_START)
lflags += -Wl,--defsym,ROM_SIZE=$(CONFIG_ROM_SIZE)
endif
